<!--
 * @Description: 
 * @Author: yucheng
 * @Date: 2024-07-22
 * @LastEditors: 余承
 * @LastEditTime: 2024-07-22
-->
<template>
  <div class="legend">
    <div class="color2values">
        <div class="color"></div>
        <div class="values">
            <span>0m</span>
            <span>100m</span>
        </div>
    </div>
    <div class="text">地下水位埋深</div>
  </div>
</template>

<script lang='ts' setup>
  
</script>

<style scoped lang='scss'>
.legend {
    width: 117px;
    height: 240px;
    border-radius: 6px;
    padding: 6px 8px;
    background-color: rgba(0,0,0,0.6);
    // background-color: red;
    color: #fff;
    .color2values {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 160px;
        margin-bottom: 10px;
        .color {
            width: 30px;
            height: 100%;
            background: linear-gradient(to top, rgb(0, 0, 128), rgb(0, 153, 255));
        }
        .values {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: start;
            width: 60px;
            height: 100%;
        }
    }
}
</style>